package com.zcf.pojo;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author jj
 * @date 2019/11/9 18:26
 */
@Data
@TableName("zcf_room")
public class HigherRoom extends Model<HigherRoom> {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 房间号
     */
    @TableField("room_num")
    private String roomNum;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 座位个数
     */
    private Integer postions;
    /**
     * 抽水比例
     */
    private Double pumping;
    /**
     * 房间底分
     */
    @TableField("room_points" )
    private Integer roomPoints;
    /**
     * 细节参数
     */
    private String hoptions;
    /**
     * 开始状态
     * 0未开始
     * 1开了
     */
    private Integer state;
    /**
     * 0推筒子1三公
     */
    @TableField("game_type" )
    private Integer gameType;
    /**
     * 0初级1中级2高级
     */
    @TableField("room_grade" )
    private Integer roomGrade;
    /**
     *做庄金币限制
     */
    @TableField("banker_money" )
    private Integer bankerMoney;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
